package com.learn.config;

import com.google.gson.Gson;
import org.dom4j.io.SAXReader;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class CommonConfig {
    @Bean // 将SAXReader对象交给Spring管理
    public SAXReader saxReader(){
        return new SAXReader();
    }

    @Bean
    public Gson gson() {
        return new Gson();
    }
}
